from django.contrib import admin
from .models import *


# Register your models here.

class UserInfoAdmin(admin.ModelAdmin):
    list_display = ['id', 'username', 'password', 'is_active',
                    'is_superuser', 'account', 'email',
                    'phone', 'date_joined',
                    'last_login', 'address','imgSrc']


class BusinessInfoAdmin(admin.ModelAdmin):
    list_display = ['id', 'username', 'password', 'is_active',
                    'is_superuser', 'account','businessType', 'email',
                    'phone', 'date_joined',
                    'last_login', 'address','imgSrc']


class GlobalSettingAdmin(admin.ModelAdmin):
    list_display = ['id', 'userIsCheckOpen', 'businessIsCheckOpen']


class BusinessTypeAdmin(admin.ModelAdmin):
    list_display = ['id', 'category', 'uploadUser', 'uploadTime', 'lastChangeTime', 'description']


admin.site.register(UserInfo, UserInfoAdmin)
admin.site.register(BusinessInfo, BusinessInfoAdmin)
admin.site.register(GlobalSetting, GlobalSettingAdmin)
admin.site.register(BusinessType, BusinessTypeAdmin)
